<div id="hai_gio_dem">
<h5>Edit product</h5><br>	
<form enctype="multipart/form-data" action="<?php echo  $backend; ?>func_save_edited_product" method="POST" class="form">
		<label>Product Label</label> 
		<input type="text" name="product_label" size="25" class="textlabel" value="<?php 
		echo $product['product_label']; ?>  " ><br><br>
		<label>Product Name</label> 
		<input type="text" name="product_name" size="25" class="textname" value="<?php 
		echo $product['product_name']; ?>  "><br><br>
		<img  src="<?php echo base_url();?>public/images/<?php echo $product['product_image'];?>"  class="image_edit"><br>
		<label>Category Name</label>
		<input type="text" name="category_name" size="25" class="textcate" value="<?php 
		echo $product['cat_name']; ?> " readonly><br><br>
		<label>Image</label>
		<input type="text" name="product_image" size="25" class="textimage" value="<?php 
		echo $product['product_image']; ?>  "><br><br>
		<label>Price</label>
		<input type="text" name="product_price" size="25" class="textprice" value="<?php 
		echo $product['product_price']; ?>  "><br><br>		
		<div id="textarea1">
		<label>Description</label><br>
		<textarea name="description" rows="4" cols="80"><?php echo $product['product_description']; ?> </textarea><br>
		</div>
		<div id="textarea2">
		<label>Article</label><br>
		<textarea name="product_article" rows="10" cols="80"><?php 		
		echo $product['product_article']; ?> </textarea><br>
		
		</div>

		<label>Change Main Image</label>
		<input type="file" name="product_image" ><br><br>
		<label>Change the category</label>
		<select name="category_id" id="select_cat">
			<?php foreach ($categories as $cat) {
				echo '<option value="'.$cat['category_id'].'" >'.
				$cat['category_name'].'</option>';
			}
			?>
		</select><br><br>

		<input type="hidden" name="product_id" value="<?php echo $product['product_id']; ?> "><br>
		<input type="submit" name="submit" value="Save"><a href="<?php echo $backend; ?>showproducts" class="back">Back</a> 


	</form>	
	</div>		